home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / text / hyper / ADtoHT2_0.lha / Makefile < prev    next >
Encoding:
Makefile  |  1995-03-21  |  1.3 KB  |  40 lines

  1. # Makefile for GNU make with GNU-C
  2.  
  3. # Comment one or both of the following lines to select code/data model
  4. BASEREL   = -fbaserel
  5. SMALLCODE = -msmall-code
  6.  
  7. EXEC      = ADtoHT
  8.  
  9. CC        = gcc $(BASEREL) $(SMALLCODE)
  10. CWARN     = -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align
  11. CFLAGS    = $(CWARN) -fomit-frame-pointer -O2
  12. CPPFLAGS  = -nostdinc -I. -I- -I/gnu/MyLib -I/gnu/os-include -I/gnu/include
  13.  
  14. LIBTYPE  := GNUC
  15.  
  16. ifdef BASEREL
  17. LIBTYPE  := $(LIBTYPE)b
  18. endif
  19. ifdef SMALLCODE
  20. LIBTYPE  := $(LIBTYPE)s
  21. endif
  22.  
  23. OBJS = main.o File.o Includes.o ProcessDir.o AVL.o Autodocs.o AdditionalDocs.o FormatNode.o
  24.  
  25. all: $(EXEC)
  26.  
  27. $(EXEC): $(OBJS)
  28.     $(CC) -Xlinker -s -nostdlib $(LIBTYPE)/MyStartup.o $(OBJS) $(LIBTYPE)/libMyLib.a -lamiga -o $@
  29.  
  30. # Dependencies
  31.  
  32. main.o: main.c main.h AVL.h File.h Includes.h ProcessDir.h Autodocs.h AdditionalDocs.h
  33. ProcessDir.o: ProcessDir.c main.h AVL.h ProcessDir.h
  34. File.o: File.c main.h AVL.h File.h
  35. Autodocs.o: Autodocs.c Includes.h main.h AVL.h File.h Autodocs.h FormatNode.h AdditionalDocs.h
  36. AVL.o: AVL.c AVL.h
  37. Includes.o: Includes.c main.h AVL.h File.h ProcessDir.h Includes.h Autodocs.h FormatNode.h AdditionalDocs.h
  38. AdditionalDocs.o: AdditionalDocs.c main.h AVL.h File.h AdditionalDocs.h Includes.h Autodocs.h FormatNode.h
  39. FormatNode.o: FormatNode.c main.h AVL.h File.h FormatNode.h
  40.